package com.sunlands.zlcx.usercenter.repository;

import com.sunlands.zlcx.usercenter.domain.UserCardsDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 * @author anjl
 */
@Repository
public interface UserCardsRepository extends JpaRepository<UserCardsDO, Long>, JpaSpecificationExecutor<UserCardsDO> {

    Boolean existsByUserId(Long userId);

    Boolean existsByCard(String card);
}
